<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\Route;
use think\Route;
Route::resource('admin','admin/index');
// 首页路由
Route::rule('/','index/Index/index');
// 关于我们
Route::rule('page/:id','index/page/index','get','',['id'=>'\d+']);
// 专业团队
Route::group('team',[
    'list/:id'   => ['index/page/team', ['method' => 'get'], ['id' => '\d+']],
    'show/:id' => ['index/page/teamshow', ['method' => 'get'],['id' => '\d+']],
]);
// 摄影作品
Route::group('works',[
    'list/:id'   => ['index/works/index', ['method' => 'get'], ['id' => '\d+']],
    'show/:id' => ['index/works/show', ['method' => 'get'],['id' => '\d+']],
]);
// 模特资料
Route::group('show',[
    'list/:id'   => ['index/model/index', ['method' => 'get'], ['id' => '\d+']],
    'show/:id' => ['index/model/show', ['method' => 'get'],['id' => '\d+']],
]);
// 摄影场景
Route::group('scene',[
    'list/:id'   => ['index/scene/index', ['method' => 'get'], ['id' => '\d+']],
    'show/:id' => ['index/scene/show', ['method' => 'get'],['id' => '\d+']],
]);
// 新闻资讯
Route::group('news',[
    'list/:id'   => ['index/news/index', ['method' => 'get'], ['id' => '\d+']],
    'show/:id' => ['index/news/show', ['method' => 'get'],['id' => '\d+']],
]);
// 联系我们
Route::rule('page/:id','index/contactus/index','get','',['id'=>'\d+']);